﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>货品管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <!-- Sweet Alert -->
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="css/add-style.css" rel="stylesheet">

</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>供应商设置</h5>
                        <a data-toggle="modal" href="storage_supplier.html#modal-form" class="btn btn-primary btn-sm pull-right" style="margin:-7px 7px 0 0;"><i class="fa fa-plus"></i>&nbsp; 增加 </a>

                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-10 col-sm-offset-2 m-b">
                                
                                <select data-placeholder="供应商名称" class="form-control input-sm m-b chosen-select" tabindex="2" style="width:150px;">
                                    <option value="110000" hassubinfo="true" selected="selected">按供应商名称查询</option>
                                    <option value="120000" hassubinfo="true">按联系人查询</option>
                                </select>
                                <div class="input-group form-group-sm">
                        <input type="text" placeholder="请输入供应商名称\联系人（支持模糊查询）" class="input form-control">
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-success btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</button>
                        </span>
                    </div>
                                
                            </div>
                        </div>
                        <table class="table table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>供应商名称</th>
                                    <th>联系人</th>
                                    <th>联系电话</th>
                                    <th>联系地址</th>
                                    <th>备注</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">安德信达</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                        <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">三一重工</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                       <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">中国装饰</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                        <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
             
                                    </td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">安德信达</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                        <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">三一重工</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                       <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">中国装饰</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                        <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
             
                                    </td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">安德信达</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                        <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">三一重工</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                       <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">中国装饰</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                        <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
             
                                    </td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>
                                        <a data-toggle="tab" href="#contact-1" class="client-link">安德信达</a>
                                    </td>
                                    <td>张可</td>
                                    <td>13811112222</td>
                                    <td>北京市朝阳区双井机电大厦</td>
                                    <td>备注信息
                                    </td>
                                    <td>
                                        <a data-toggle="modal" href="storage_supplier.html#modal-edit" class="text-warning">修改</a>&nbsp;&nbsp;
                                        <a href="javascript:;"  class="text-danger demo4">删除</a>
                                    </td>
                                </tr>
                                
                            </tbody>

                        </table>
                        <div class="text-right">
                            <ul class="pagination">
                                <li><a href="#">&laquo;</a></li>
                                <li><a href="#">1</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a href="#">4</a></li>
                                <li><a href="#">5</a></li>
                                <li><a href="#">&raquo;</a></li>
                                <li><a href="#">页数：1/10</a></li>
                                <li><a href="#">总记录数：1000</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="modal-form" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">新增供应商</h5>
                </div>
                <div class="modal-body">
                    <table style="width: 100%;">
                                    <tbody>
                                        <tr class="">
                                           
                                            <th>供应商名字：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm w200"></td>
                                            
                                        </tr>
                                        
                                        <tr>
                                           <th>联系人姓名：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm w200"></td>
                                        </tr>
                                        <tr>
                                            <th>联系人电话：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm w200"></td>
                                            </tr>
                                            <tr>
                                            <th>供应商地址：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm"></td>
                                        </tr>

                                        <tr>

                                            <th>备注：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm"></td>
                                           
                                        </tr>
                                       
                                    </tbody>
                                </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary demo2">保存</button>
                </div>
            </div>
        </div>
    </div>

   <div class="modal fade" id="modal-edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">修改供应商信息</h5>
                </div>
                <div class="modal-body">
                    <table style="width: 100%;">
                                    <tbody>
                                        <tr class="">
                                           
                                            <th>供应商名字：</th>
                                            <td>
                                                <input type="text" value="京东商城" class="form-control input-sm w200"></td>
                                            
                                        </tr>
                                        
                                        <tr>
                                           <th>联系人姓名：</th>
                                            <td>
                                                <input type="text" value="刘德华" class="form-control input-sm w200"></td>
                                        </tr>
                                        <tr>
                                            <th>联系人电话：</th>
                                            <td>
                                                <input type="text" value="15942367899" class="form-control input-sm w200"></td>
                                            </tr>
                                            <tr>
                                            <th>供应商地址：</th>
                                            <td>
                                                <input type="text" value="中南海一号" class="form-control input-sm"></td>
                                        </tr>

                                        <tr>

                                            <th>备注：</th>
                                            <td>
                                                <input type="text" value="" class="form-control input-sm"></td>
                                           
                                        </tr>
                                       
                                    </tbody>
                                </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary demo2">保存</button>
                </div>
            </div>
        </div>
    </div> 
    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>

    <script>
        $(function () {
            $('.full-height-scroll').slimScroll({
                height: '100%'
            });
        });
    </script>
    <script>
    
//使页面中所有.modal元素在窗口可视范围之内居中

        function centerModals() {
            $('.modal').each(function (i) {
                var $clone = $(this).clone().css('display', 'block').appendTo('body');
                var top = Math.round(($clone.height() - $clone.find('.modal-content').height()) / 2);
                top = top > 50 ? top : 0;
                $clone.remove();
                $(this).find('.modal-content').css("margin-top", top - 50);
            });
        }
        // 在模态框出现的时候调用垂直居中函数
        $('.modal').on('show.bs.modal', centerModals);
        // 在窗口大小改变的时候调用垂直居中函数
        $(window).on('resize', centerModals);
    </script>
     <!-- Chosen -->
    <script src="js/plugins/chosen/chosen.jquery.js"></script>
    <script>
        var config = {
            ".chosen-select": {},
            ".chosen-select-deselect": {
                allow_single_deselect: true
            },
            ".chosen-select-no-single": {
                disable_search_threshold: 10
            },
            ".chosen-select-no-results": {
                no_results_text: "Oops, nothing found!"
            },
            ".chosen-select-width": {
                width: "95%"
            }
        };
        for (var selector in config) {
            $(selector).chosen(config[selector])
        }

    </script>
    <!-- Sweet alert -->
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        //-- 保存小弹框--
        $('.demo2').click(function () {
            swal({
                title: "保存成功！",
                type: "success"
            });
        });
        //-- 删除弹框--
        $('.demo4').click(function () {
            swal({
                title: "您确定要删除这条信息吗",
                text: "删除后将无法恢复，请谨慎操作！",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "删除",
                closeOnConfirm: false
            }, function () {
                swal("删除成功！", "您已经永久删除了这条信息。", "success");
            });
        });
    </script>
</body>
</html>
